]> dgit.raspbian.org Git - gnome-shell.git/commit
hotplut-sniffer: Use one-shot idle/timeout functions
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 29 Jan 2026 13:29:58 +0000 (14:29 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 5 Feb 2026 16:09:29 +0000 (17:09 +0100)
commit7d3ec9cc45186cbcd6a7bbe15ac4d98120549657
treef73fd0738c00301651fcf2b86d780098aed7ae38
parent00f9f73b4a5289b1dcfbdc189f5f2b34effb3944
hotplut-sniffer: Use one-shot idle/timeout functions

GLib added one-shot variants of the idle/timeout functions a while ago.

While they don't save a lot of code, they serve as a clear marker that
the callback is only invoked once.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3947>
(cherry picked from commit 1b1d22b5da2aea45f3125c91b72fc636a736abf1)
src/hotplug-sniffer/hotplug-sniffer.c
src/hotplug-sniffer/shell-mime-sniffer.c